<div ng-controller="ProcessDialog">
	<div class="panel bar fix hasMenu" ng-style="{top: pos.top + 'px', left: pos.left + 'px'}" style="min-height: 0">
		<div class="title" ng-draggable top="pos.top" left="pos.left" ng-mousedown="mask()" ng-mouseup="deMask()">标题栏
			<ul class="toolbar right">
				<li>
					<a href="#/panel" title="关闭" class="button bar-close ico close"></a>
				</li>
			</ul>
		</div>
		<form>
			<div class="grid-container">

				<div class="grid align-bottom">
					<div class="col col-10-12">

						<div class="grid-container">
							<div class="grid">
								<div class="col col-6-12">
									<label>过程名称
										<input ng-model="options.name" />
									</label>
								</div>
								<div class="col col-2-12">
									<label>循环数
										<input ng-model="loops" ng-model-options="{ getterSetter: true, updateOn: 'blur' }" />
									</label>
								</div>
								<div class="col col-2-12">
									<label>创建日期
										<input readonly />
									</label>
								</div>
								<div class="col col-2-12">
									<label>更新日期
										<input readonly />
									</label>
								</div>
							</div>
						</div>

						<div class="grid-container">
							<div class="grid grid-flexible align-bottom">
								<div class="col">
									<label>起始页面
										<input id="origin" ng-model="options.origin" />
									</label>
								</div>
								<div class="col col-minimal">
									<a class="button primary ico terminal" ng-click="getLocation()"></a>
								</div>
							</div>
						</div>

					</div>
					<div class="col col-2-12">
						<a class="button call-out dict-close" href="#/panel/process/add/dictionary"></a>
					</div>
				</div>

				<div class="grid">
					<label class="h-max">过程描述
						<textarea ng-model="options.comment"></textarea>
					</label>
				</div>
			</div>

			<div class="row">
				<ul class="toolbar right">
					<li>
						<input type="button" class="button success large" value="创建" ng-if="isCreate()" ng-click="createProcess()" />
					</li>
					<li>
						<input type="button" class="button success large" value="修改" ng-if="!isCreate()" ng-click="modifyProcess()" />
					</li>
					<li>
						<a class="button warning large bar-close" title="" href="#/panel">取消</a>
					</li>
				</ul>
			</div>
		</form>
	</div>
	<div ui-view="dictionary"></div>
</div>
